package com.bz.service;

import java.util.List;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.bz.entity.RoleEntity;
import com.bz.model.MenuDto;
import com.bz.model.MenuTree;

public interface IRoleService {

    /**
     * 根据条件查询角色
     * 
     * @param query
     * @return
     */
    public List<RoleEntity> getBycondition(LambdaQueryWrapper<RoleEntity> query);

    /**
     * 获取菜单
     * 
     * @return
     */
    public List<MenuDto> getMenuByUid(Long uid);

    /**
     * 转换
     * 
     * @param menuList
     * @return
     */
    public List<MenuTree> convertTree(List<MenuDto> menuList);
}
